.class public Les/we0;
.super Ljava/lang/Object;
.source "OBEXSessionNotifierImpl.java"

# interfaces
.implements Les/xp0;


# instance fields
.field private a:Les/qp0;

.field private b:Les/ke0;


# direct methods
.method public constructor <init>(Les/qp0;Les/ke0;)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/Error;
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/we0;->a:Les/qp0;

    .line 3
    iput-object p2, p0, Les/we0;->b:Les/ke0;

    return-void
.end method


# virtual methods
.method public a(Les/wp0;)Les/lp0;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0}, Les/we0;->a(Les/wp0;Les/rp0;)Les/lp0;

    move-result-object p1

    return-object p1
.end method

.method public declared-synchronized a(Les/wp0;Les/rp0;)Les/lp0;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    monitor-enter p0

    .line 2
    :try_start_0
    iget-object v0, p0, Les/we0;->a:Les/qp0;

    if-eqz v0, :cond_1

    if-eqz p1, :cond_0

    .line 3
    new-instance v0, Les/ue0;

    iget-object v1, p0, Les/we0;->a:Les/qp0;

    .line 4
    invoke-interface {v1}, Les/qp0;->c()Les/pp0;

    move-result-object v1

    iget-object v2, p0, Les/we0;->b:Les/ke0;

    invoke-direct {v0, v1, p1, p2, v2}, Les/ue0;-><init>(Les/pp0;Les/wp0;Les/rp0;Les/ke0;)V

    .line 5
    invoke-virtual {v0}, Les/ue0;->m()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 6
    monitor-exit p0

    return-object v0

    .line 7
    :cond_0
    :try_start_1
    new-instance p1, Ljava/lang/NullPointerException;

    const-string p2, "handler is null"

    invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 8
    :cond_1
    new-instance p1, Ljava/io/IOException;

    const-string p2, "Session closed"

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public close()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/we0;->a:Les/qp0;

    const/4 v1, 0x0

    .line 2
    iput-object v1, p0, Les/we0;->a:Les/qp0;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0}, Les/lp0;->close()V

    :cond_0
    return-void
.end method
